約 5,522,338 件
https://w.atwiki.jp/mainichi-matome/pages/2377.html
WaiWaiの記事を転載した英語サイト: [A|B|C|D|E|F|G|H|I|J|K|L|M|N|O|P|Q|R|S|T|U|V|W|X|Y|Z|数字] boku no JPOP.com 関連ページ boku no JPOP.com http //www.bokunojpop.com/ 部分転載 Living the rich life on 80,000 yen a month http //www.bokunojpop.com/index.php/News-Briefs/Living-the-rich-life-on-80000-yen-a-month.html Girls get misty-eyed over bespectacled blokes http //www.bokunojpop.com/index.php/News-Briefs/Girls-get-misty-eyed-over-bespectacled-blokes.html The dark side of baseball s brightest star http //www.bokunojpop.com/index.php/News-Briefs/The-dark-side-of-baseball-s-brightest-star.html Otaku nerd booms blows breath of fresh air into flirtatious Marilyn Monroe cafe http //www.bokunojpop.com/index.php/News-Briefs/-Otaku-nerd-booms-blows-breath-of-fresh-air-into-flirtatious-Marilyn-Monroe-cafe.html Busty shogi queen helps pad Japanese chess fan base http //www.bokunojpop.com/index.php/News-Briefs/Busty-shogi-queen-helps-pad-Japanese-chess-fan-base.html Swinging teen golfers under fire for rough play http //www.bokunojpop.com/index.php/News-Briefs/Swinging-teen-golfers-under-fire-for-rough-play.html Capsule hotels move up-market with VIP rooms http //www.bokunojpop.com/index.php/News-Briefs/Capsule-hotels-move-up-market-with-VIP-rooms.html Aichi won t panda to woman s unbearable wishes http //www.bokunojpop.com/index.php/News-Briefs/Aichi-won-t-panda-to-woman-s-unbearable-wishes.html 100 yen shops give you more than your money s worth http //www.bokunojpop.com/index.php/News-Briefs/100-yen-shops-give-you-more-than-your-money-s-worth.html Yoga purists bent out of shape over trendy twisted poses http //www.bokunojpop.com/index.php/News-Briefs/Yoga-purists-bent-out-of-shape-over-trendy-twisted-poses.html Lady bosses setting young guys hearts a-flutter http //www.bokunojpop.com/index.php/News-Briefs/Lady-bosses-setting-young-guys-hearts-a-flutter.html More gals look to untie men s marriage knots for no-strings-attached flings http //www.bokunojpop.com/index.php/News-Briefs/More-gals-look-to-untie-men-s-marriage-knots-for-no-strings-attached-flings.html Gal geeks jump aboard hip to be square boom http //www.bokunojpop.com/index.php/News-Briefs/Gal-geeks-jump-aboard-hip-to-be-square-boom.html Sweaty, smelly, cramped commuters squashed into state of rail rage http //www.bokunojpop.com/index.php/News-Briefs/Sweaty-smelly-cramped-commuters-squashed-into-state-of-rail-rage.html Tokyo terrorized by Sept.11 threat http //www.bokunojpop.com/index.php/News-Briefs/Tokyo-terrorized-by-Sept.11-threat.html Japan s biggest all-boy band tipped to go it alone http //www.bokunojpop.com/index.php/News-Briefs/Japan-s-biggest-all-boy-band-tipped-to-go-it-alone.html Wartime images of Germany and Japan a study in contrast http //www.bokunojpop.com/index.php/News-Briefs/Wartime-images-of-Germany-and-Japan-a-study-in-contrasts.html Frog in the throat no bull this time http //www.bokunojpop.com/index.php/News-Briefs/Frog-in-the-throat-no-bull-this-time.html Not-so-lonely single lasses turned off by pressure to turn on http //www.bokunojpop.com/index.php/News-Briefs/Not-so-lonely-single-lasses-turned-off-by-pressure-to-turn-on.html Cardboard robots wrestle into the hearts of fanatical fans http //www.bokunojpop.com/index.php/News-Briefs/Cardboard-robots-wrestle-into-the-hearts-of-fanatical-fans.html Gals swoon over Boy s Love media boom http //www.bokunojpop.com/index.php/News-Briefs/Gals-swoon-over-Boy-s-Love-media-boom.html Doctors driving patients to drink http //www.bokunojpop.com/index.php/News-Briefs/Doctors-driving-patients-to-drink.html Otaku outraged over cracks in make-up of maids at sexy servant hotel http //www.bokunojpop.com/index.php/News-Briefs/Otaku-outraged-over-cracks-in-make-up-of-maids-at-sexy-servant-hotel.html Jo no Kyoshitsu Sponsors feel the wrath of cruel TV drama http //www.bokunojpop.com/index.php/News-Briefs/Jo-no-Kyoshitsu-Sponsors-feel-the-wrath-of-cruel-TV-drama.html Snotty schools see measly manga in new light http //www.bokunojpop.com/index.php/News-Briefs/Snotty-schools-see-measly-manga-in-new-light.html Longful lasses nurture nerds in bid to wean them off wackiness http //www.bokunojpop.com/index.php/News-Briefs/Longful-lasses-nurture-nerds-in-bid-to-wean-them-off-wackiness.html Bon-odori Innocent dance or raunchy bop? http //www.bokunojpop.com/index.php/News-Briefs/Bon-odori-Innocent-dance-or-raunchy-bop.html Single gals fret over life s uncertainties http //www.bokunojpop.com/index.php/News-Briefs/Single-gals-fret-over-life-s-uncertainties.html Japan s most desirable divorcee gets herself a toy boy http //www.bokunojpop.com/index.php/News-Briefs/Japan-s-most-desirable-divorcee-gets-herself-a-toy-boy.html Controversial comic puts bitter touch to Korean craving http //www.bokunojpop.com/index.php/News-Briefs/Controversial-comic-puts-bitter-touch-to-Korean-craving.html Lonely lasses double as own make-believe friends to portray popularity http //www.bokunojpop.com/index.php/News-Briefs/Lonely-lasses-double-as-own-make-believe-friends-to-portray-popularity.html eisty fogeys fight it out in World Oyaji Battle http //www.bokunojpop.com/index.php/News-Briefs/Feisty-fogeys-fight-it-out-in-World-Oyaji-Battle.html Densha Otoko Japan recruits romantic otaku geeks to revive economy http //www.bokunojpop.com/index.php/News-Briefs/Densha-Otoko-Japan-recruits-romantic-otaku-geeks-to-revive-economy.html "Japan recruits romantic otaku geeks to revive economy" Shock resignation turns Japan s underworld upside down http //www.bokunojpop.com/index.php/News-Briefs/Shock-resignation-turns-Japan-s-underworld-upside-down.html Fallen-idol Beckham s spitting spat leaves gossip rags drooling http //www.bokunojpop.com/index.php/News-Briefs/Fallen-idol-Beckham-s-spitting-spat-leaves-gossip-rags-drooling.html 関連ページ Japan recruits romantic otaku geeks to revive economy WaiWaiの記事を転載した英語サイト:B
https://w.atwiki.jp/ntosaka/pages/21.html
テニス 全豪オープン(リアルタイムスコア情報) http //www.australianopen.com/en_AU/scores/index.html ツール 無料ブログパーツ http //www.blogdeco.jp/ http //www.keiomcc.com/index.html
https://w.atwiki.jp/mekagazira/pages/24.html
PHP PHP インストール トラブル トラブル リンク先やボタンのURLのホスト部分がおかしい! 参考URL インストール 最新のphpのソースを取得する http //www.php.net/downloads.php $ pwd /export/meka/20100903php/php-5.2.14 $wget http //jp2.php.net/get/php-5.2.14.tar.gz/from/jp.php.net/mirror インストール $gunzip php-5.2.14.tar.gz $tar xvf php-5.2.14.tar $LD_LIBRARY_PATH= /usr/local/lib $PATH=/usr/local/bin /usr/bin /usr/sfw/bin /usr/ccs/bin $export LD_LIBRARY_PATH $export PATH $cd php-5.2.14 $./configure --enable-mbstring --with-apxs2=/usr/local/apache2/bin/apxs #LD_LIBRARY_PATH= /usr/local/lib #PATH=/usr/local/bin /usr/bin /usr/sfw/bin /usr/ccs/bin #export LD_LIBRARY_PATH #export PATH #make install # cp -pi php.ini-dist /usr/local/lib/php/php.ini apacheの設定 /usr/local/apache2/conf/httpd.confへ以下の記述を追加する。 310 #2010/09/03追加 311 AddType application/x-httpd-php .php $apachectl configtest Syntax OK /usr/local/apache2/htdocsへ test.phpを作成しテスト $vi test.php ? phpinfo()? ブラウザからアクセスして確認する。 http //192.168.11.4/test.php トラブル 初めrootになったあと、そのままmake installを実行したら以下のエラーが発生した。 Undefined first referenced symbol in file libiconv_close ext/iconv/.libs/iconv.o libiconv_open ext/iconv/.libs/iconv.o libiconv ext/iconv/.libs/iconv.o ld fatal Symbol referencing errors. No output written to sapi/cli/php collect2 ld returned 1 exit status make *** [sapi/cli/php] Error 1 LD_LIBRARY_PATHとPATHの設定をして再度make installしたら成功した。 chmod 755 /usr/local/apache2/modules/libphp5.so [activating module `php5 in /usr/local/apache2/conf/httpd.conf] Installing PHP CLI binary /usr/local/bin/ Installing PHP CLI man page /usr/local/man/man1/ Installing build environment /usr/local/lib/php/build/ Installing header files /usr/local/include/php/ Installing helper programs /usr/local/bin/ program phpize program php-config Installing man pages /usr/local/man/man1/ page phpize.1 page php-config.1 Installing PEAR environment /usr/local/lib/php/ [PEAR] Archive_Tar - installed 1.3.7 [PEAR] Console_Getopt - installed 1.2.3 [PEAR] Structures_Graph- installed 1.0.3 [PEAR] XML_Util - installed 1.2.1 [PEAR] PEAR - installed 1.9.1 Wrote PEAR system config file at /usr/local/etc/pear.conf You may want to add /usr/local/lib/php to your php.ini include_path Installing PDO headers /usr/local/include/php/ext/pdo/ 以下の通りgccでインストールしたから成功したのかな?? # which gcc /usr/local/bin/gcc トラブル リンク先やボタンのURLのホスト部分がおかしい! httpd.confのServerNameを変更すると。。。なおりました。 99 #ServerName www.mekagazi.com 80 100 ServerName 192.168.11.4 80 http //www.mekagazi.com/pukiwiki/index.php?FrontPage http //192.168.11.4/pukiwiki/index.php?FrontPage 参考URL http //www.harunire.com/t-yoda/index.php?Solaris/PukiWiki
https://w.atwiki.jp/civilizationv/pages/31.html
PHP Hypertext Preprocessor http //www.php.net/ http //jp2.php.net/ (日本のミラーサイト) 日本PHPユーザー会 (Japan PHP User Group) http //www.php.gr.jp/
https://w.atwiki.jp/1700/pages/14.html
PHPインストールの前に、Mysqlをインストールしておくこと ■MySQLインストール [root@centos ~]# yum -y install mysql-server ← mysql-serverインストール ■MySQL設定 [root@centos ~]# vi /etc/my.cnf ← MySQL設定ファイル編集 [mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock # Default to using old password format for compatibility with mysql 3.x # clients old_passwords=1 default-character-set = utf8 ← 追加(MySQLサーバーの文字コードをUTF-8にする) 以下を追加(MySQLクライアントの文字コードをUTF-8にする) [mysql] default-character-set = utf8 ■MySQL起動 [root@centos ~]# /etc/rc.d/init.d/mysqld start ← MySQL起動 MySQL データベースを初期化中 Installing all prepared tables Fill help tables To start mysqld at boot time you have to copy support-files/mysql.server to the right place for your system PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! To do so, start the server, then issue the following commands /usr/bin/mysqladmin -u root password new-password /usr/bin/mysqladmin -u root -h centos.centossrv.com password new-password See the manual for more instructions. You can start the MySQL daemon with cd /usr ; /usr/bin/mysqld_safe You can test the MySQL daemon with the benchmarks in the sql-bench directory cd sql-bench ; perl run-all-tests Please report any problems with the /usr/bin/mysqlbug script! The latest information about MySQL is available on the web at http //www.mysql.com Support MySQL by buying support/licenses at http //shop.mysql.com [ OK ] MySQL を起動中 [ OK ] [root@centos ~]# chkconfig mysqld on ← MySQL自動起動設定 [root@centos ~]# chkconfig --list mysqld ← MySQL自動起動設定確認 mysqld 0 off 1 off 2 on 3 on 4 on 5 on 6 off ← ランレベル2~5のonを確認 #wget php-5.2.12.tar.gz #tar zxvf php-5.2.12.tar.gz #cd php-5.2.12 #./configure --prefix=/usr/local/php --enable-mbstring --with-apxs2=/usr/sbin/apxs --with-config-file-path=/usr/local/php/lib/ --enable-zend-multibyte --enable-mbregex --with-mime-magic --enable-exif --with-zlib --with-mysql=/usr/local/mysql/ --with-libdir=lib64 ※無いと言われるライブラリはその都度インストール 例:# wget http //www.ijg.org/files/jpegsrc.v6b.tar.gz # tar zxvf jpegsrc.v6b.tar.gz # cd jpeg-6b # ./configure --prefix=/usr/local # make # make install 参考:http //greenonions.blog5.fc2.com/blog-entry-36.html # make # make install PHP5設定ファイルコピー # cp php.ini-dist /usr/local/lib/php.ini PHP5利用のためApacheの設定 # vi /etc/httpd/conf.d/php.conf 以下をコピペ LoadModule php5_module modules/libphp5.so AddHandler php5-script .php AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps DirectoryIndex index.php Apacheをリスタート #/usr/local/apache2/bin/apachectl restart ※この際、「libphp5.so」が存在しないというエラーが出たら、 LoadModule php5_module modules/libphp5.so この部分を変更しなければならない。 今回は「Makefile」を見たところ、「/home/ota/php-5.2.12/libs/libphp5.so」こんなところにありやがった。 ので、 LoadModule php5_module /home/ota/php-5.2.12/libs/libphp5.so こんな感じになった。 phpinfo();を作成して動作確認 #vi phpinfo.php ? phpinfo(); ? 参考ページ http //centossrv.com/mysql.shtml http //www.makizou.com/archives/1270 http //greenonions.blog5.fc2.com/blog-entry-36.html http //www.oklab.org/language_c/php5_0_2_install_bug.htm http //tonby.sakura.ne.jp/?p=45 http //d.hatena.ne.jp/kyart/20081020/1224480952 http //www.trekdevel.net/archives/14 http //d.hatena.ne.jp/sotarok/20070618/1182174722 http //wassr.jp/user/umq/statuses/n2F7w0id26 http //oshiete1.goo.ne.jp/qa5118360.html
https://w.atwiki.jp/whitebrowser/pages/150.html
//----------------------------------------------------------------------- //** getBookmarks /** 指定条件に該当するすべてのブックマークの情報を取得 * @param from 検索結果開始値 * @param count 開始値からいくつ表示するか、-1でfromからの検索結果をすべて表示 * @paramwhere 追加条件(SQL) * @paramorder 追加並び条件(SQL) * @paramoverride 0 いまの検索条件と追加条件をマージして検索 * 1 追加条件のみで検索 * 2 いまの検索条件で検索、追加並び条件で並び替え * @return 指定した条件に該当する全ブックマークの情報 *///--------------------------------------------------------------------- メソッド一覧
https://w.atwiki.jp/fxext/pages/62.html
Firefox75時点での内容 resource //gre/modules/Bookmarks.jsm jsmを直接importするより、PlacesUtils.bookmarksでアクセスする方が良い? ファイル冒頭の説明文の翻訳 メソッド プロパティ ファイル冒頭の説明文の翻訳 ※ほぼ機械翻訳 * This module provides an asynchronous API for managing bookmarks. このモジュールは、ブックマークを管理するための非同期APIを提供します。 * Bookmarks are organized in a tree structure, and include URLs, folders and * separators. Multiple bookmarks for the same URL are allowed. ブックマークはツリー構造で編成されており、URL、フォルダ、セパレータが含まれています。 同じURLの複数のブックマークが許可されます。 * Note that if you are handling bookmarks operations in the UI, you should * not use this API directly, but rather use PlacesTransactions.jsm, so that * any operation is undo/redo-able. UIでブックマーク操作を処理している場合は、このAPIを直接使用するのではなく、PlacesTransactions.jsm を使用して、操作を元に戻したりやり直したりできるようにする必要があります。 * Each bookmark-item is represented by an object having the following * properties * * - guid (string) * The globally unique identifier of the item. * - parentGuid (string) * The globally unique identifier of the folder containing the item. * This will be an empty string for the Places root folder. * - index (number) * The 0-based position of the item in the parent folder. * - dateAdded (Date) * The time at which the item was added. * - lastModified (Date) * The time at which the item was last modified. * - type (number) * The item s type, either TYPE_BOOKMARK, TYPE_FOLDER or TYPE_SEPARATOR. 各ブックマークアイテムは、次のプロパティを持つオブジェクトによって表されます。 guid (文字列):アイテムのグローバル一意識別子。 parentGuid (文字列):アイテムを含むフォルダーのグローバル一意識別子。Placesルートフォルダは空の文字列になる。 index (数字):親フォルダー内のアイテムの0から始まる位置。 dateAdded (Date):アイテムが追加された時刻。 lastModified (Date):アイテムが最後に変更された時刻。 type (数字):アイテムのタイプ。TYPE_BOOKMARK、TYPE_FOLDER、またはTYPE_SEPARATOR。 * The following properties are only valid for URLs or folders. * * - title (string) * The item s title, if any. Empty titles and null titles are considered * the same. Titles longer than DB_TITLE_LENGTH_MAX will be truncated. 次のプロパティは、URLまたはフォルダに対してのみ有効です。 title (文字列):アイテムのタイトル(ある場合)。空のタイトルとnullタイトルは同じと見なされる。DB_TITLE_LENGTH_MAX より長いタイトルは切り捨てられる。 * The following properties are only valid for URLs * * - url (URL, href or nsIURI) * The item s URL. Note that while input objects can contains either * an URL object, an href string, or an nsIURI, output objects will always * contain an URL object. * An URL cannot be longer than DB_URL_LENGTH_MAX, methods will throw if a * longer value is provided. 次のプロパティは、URLに対してのみ有効です。 url (URL, href or nsIURI): アイテムのURL。入力オブジェクトにはURLオブジェクト、href文字列、またはnsIURIのいずれかを含めることができるが、出力オブジェクトには常にURLオブジェクトが含まれることに注意。URLは DB_URL_LENGTH_MAX より長くすることはできない。長い値を指定すると、メソッドがスローする。 * Each successful operation notifies through the nsINavBookmarksObserver * interface. To listen to such notifications you must register using * nsINavBookmarksService addObserver and removeObserver methods. * Note that bookmark addition or order changes won t notify onItemMoved for * items that have their indexes changed. * Similarly, lastModified changes not done explicitly (like changing another * property) won t fire an onItemChanged notification for the lastModified * property. * @see nsINavBookmarkObserver 成功した各操作は、nsINavBookmarksObserver インターフェースを通じて通知します。 そのような通知を聞くには、nsINavBookmarksService の addObserver および removeObserver メソッドを使用して登録する必要があります。 ブックマークの追加や順序の変更は、インデックスが変更されたアイテムの onItemMoved に通知されないことに注意してください。 同様に、明示的に行われていない lastModified の変更(別のプロパティの変更など)は、lastModified プロパティの onItemChanged 通知をトリガーしません。 @参照:nsINavBookmarkObserver メソッド isVirtualRootItem(guid) 返り値:真偽値 4つの仮想ルートフォルダかどうか getLocalizedTitle(info) 返り値:文字列 4つのユーザーコンテンツルートフォルダのローカライズ名を取得 insert(info) 返り値:promise ブックマークアイテムを既存のブックマークツリーに挿入 insertTree(tree, options) 返り値:promise ブックマークツリーを既存のブックマークツリーに挿入 update(info) 返り値:promise ブックマークアイテムを更新 moveToFolder(guids, parentGuid, index, source) 返り値:promise 複数のブックマークアイテムを特定のフォルダに移動 remove(guidOrInfo, options = {}) 返り値:promise ブックマークアイテムを削除 eraseEverything(options = {}) 返り値:promise すべてのブックマークを削除し、ブックマークストレージを空のツリーにリセットする。 getRecent(numberOfItems) 返り値:promise 最近ブックマークしたアイテムのリストを返す。 実際のブックマークのみが含まれ、フォルダ、セパレーター、およびクエリを除外する。 fetch(guidOrInfo, onResult = null, options = {}) 返り値:promise(resolve値:ブックマークアイテム) ブックマークアイテムの情報を取得する。 fetchTree(guid = "", options = {}) 返り値:promise ブックマークアイテムのオブジェクト表現を、その子孫がある場合はその全てと共に取得する。 async fetchTags() 返り値:promise アルファベット順にソートされたすべての既存のタグを取得する。 reorder(parentGuid, orderedChildrenGuids, options = {}) 返り値:promise GUIDの配列に基づいてフォルダの内容を並べ替える。 search(query) 返り値:promise(resolve値:見つかったブックマークアイテムの配列) ブックマークをURLまたはタイトルで検索する。 プロパティ プロパティ 値 TYPE_BOOKMARK 1 TYPE_FOLDER 2 TYPE_SEPARATOR 3 SYNC_STATUS DEFAULT_INDEX -1 MAX_TAG_LENGTH 100 SOURCES rootGuid "root________" menuGuid "menu________" toolbarGuid "toolbar_____" unfiledGuid "unfiled_____" mobileGuid "mobile______" tagsGuid "tags________" userContentRoots 4つのユーザーコンテンツルートフォルダのGUIDの配列 virtualMenuGuid "menu_______v" virtualToolbarGuid "toolbar____v" virtualUnfiledGuid "unfiled____v" virtualMobileGuid "mobile_____v"
https://w.atwiki.jp/besttojpan/pages/16.html
麻黄 www.besttojp.com/product/mh.html 麻黄効能 利胆作用(胆汁の分泌促進作用) 交感神経興奮作用 発汗作用 鎮咳作用 利尿作用 解熱作用 発汗、鎮静、去痰薬として、皮膚の排泄機能障害による呼吸困難、喘咳悪寒、身体疼痛、骨折痛などに応用する。喘息のような呼吸困難や咳、そして体が痛かったり全身が黄ばんで浮腫があるような場合に、麻黄は欠かせない。節と節の間の部分に発汗作用があり、節と根に止汗作用がある。 生薬 www.besttojp.com/zhongguotese/class44.html 田七人参 www.besttojp.com/Product/tqrs.html
https://w.atwiki.jp/namekuji/pages/7.html
bookmarks 萌えルート様 #ref error :ご指定のファイルが見つかりません。ファイル名を確認して、再度指定してください。 (bookmarks) CG定点観測様 Mug-G s様 #ref error :ご指定のファイルが見つかりません。ファイル名を確認して、再度指定してください。 (bookmarks) KONOMIX~趣味に生きる~様
https://w.atwiki.jp/mapcaps/pages/15.html
【課題1】 JavaScript を PHP で作成し、HTML に埋め込み可能なアクセスカウンタを作成 ( アクセスのカウントは、DB を使用する ) ? header( "Content-Type text/javascript; Charset=shift_jis" ); header( "Expires Wed, 31 May 2000 14 59 58 GMT" ); # ********************************************************** # 接続 # ********************************************************** $Connect = @mysql_connect( "localhost", "root", "" ); mysql_select_db( "lightbox", $Connect ); # 一行一列しかないテーブル( 初期値 0 ) $Query = "update counter set access_count = access_count + 1"; mysql_query( $Query, $Connect ); $Query = "select * from counter"; $Result = mysql_query( $Query, $Connect ); $Column = mysql_fetch_array( $Result ); # ********************************************************** # 接続解除 # ********************************************************** mysql_close( $Connect ); ? document.write( " SPAN style= color red ?= $Column[0] ? /SPAN " ); 【課題2】 GD を PHP で作成し、HTML に IMG ~ で埋め込み可能なアクセスカウンタを作成 ( アクセスのカウントは、DB を使用する ) ? # ********************************************************** # このソースコードは、EUC-JP で記述されています # ********************************************************** header("Content-type image/png"); header( "Content-Type text/javascript; Charset=shift_jis" ); header( "Expires Wed, 31 May 2000 14 59 58 GMT" ); $target = "http //127.0.0.1/php/pg080118/"; if ( substr( $_SERVER[ HTTP_REFERER ], 0, strlen( $target ) ) == $target ) { # ********************************************************** # 接続 # ********************************************************** $Connect = @mysql_connect( "localhost", "root", "" ); mysql_select_db( "lightbox", $Connect ); # 一行一列しかないテーブル( 初期値 0 ) $Query = "update counter set access_count = access_count + 1"; mysql_query( $Query, $Connect ); $Query = "select * from counter"; $Result = mysql_query( $Query, $Connect ); $Column = mysql_fetch_array( $Result ); $font_path = "./ArmedBanana.ttf"; # ********************************************************** # 内部コードは、UTF-8 ( EUC-JP でも良い ) # ********************************************************** mb_language( "ja" ); mb_internal_encoding( "UTF-8" ); # ********************************************************** # 対象文字列 # ********************************************************** $img_text = $Column[0]; $img_text = mb_convert_encoding( $img_text, "UTF-8", "EUC-JP" ); # ********************************************************** # キャンバス作成 # ********************************************************** $im = imagecreate( 150, 30 ); # *********************************************************** # 画像の背景色 # imagecolorallocate() の最初のコールで背景色がセットされます # *********************************************************** $white = imagecolorallocate( $im, 255, 255, 255 ); # *********************************************************** # 画像の文字色 # *********************************************************** $black = imagecolorallocate( $im, 0, 0, 0 ); imagettftext( $im, 20,# サイズ 0,# 角度 5,# x 座標 22,# y 座標 $black, $font_path, $img_text); # *********************************************************** # PNG 出力 # *********************************************************** imagepng($im); # *********************************************************** # 終了処理 # *********************************************************** imagecolordeallocate( $im, $black ); imagecolordeallocate( $im, $white ); imagedestroy($im); # ********************************************************** # 接続解除 # ********************************************************** mysql_close( $Connect ); } else { $Column[0] = アクセスできません ; } ? 【課題3】 JavaScript を PHP で作成し、HTML に埋め込み可能なGoogleサイト検索を作成 ( php に引数を渡して、サイトを選択できるようにする ) ? header( "Content-Type text/javascript; Charset=euc-jp" ); header( "Expires Wed, 31 May 2000 14 59 58 GMT" ); ? str= ; str+=" center "; str+=" form method=get action=\"http //www.google.co.jp/search\" target=\"_blank\" "; str+=" table bgcolor=\"#FFFFFF\" "; str+=" tr valign=top "; str+=" td "; str+=" a href=\"http //www.google.co.jp/\" "; str+=" img src=\"http //www.google.com/logos/Logo_40wht.gif\" nborder=\"0\" alt=\"Google\" align=\"absmiddle\" /a "; str+=" /td "; str+=" td "; str+=" input type=text name=q size=31 maxlength=255 value=\"\" "; str+=" input type=hidden name=ie value=euc-jp "; str+=" input type=hidden name=oe value=euc-jp "; str+=" input type=hidden name=hl value=\"ja\" "; str+=" input type=submit name=btnG value=\"Google 検索\" "; str+=" font size=-1 "; str+=" input type=hidden name=domains value=\"www.oracle.com/lang/jp/\" br "; str+=" input type=radio name=sitesearch value=\"\" "; str+="WWW を検索"; str+=" input type=radio name=sitesearch value=\"www.oracle.com/lang/jp/\" checked "; str+="Oracle を検索 /font /td /tr /table "; str+=" /form "; /* str+=" form method=get action=\"http //www.google.co.jp/search\" target=\"_blank\" 入力したキーワードを検索 br "; str+=" input type=text name=q size=60 maxlength=255 value=\"\" "; str+=" input type=submit name=btnG value=\"検索\" "; str+=" input type=hidden name=ie value=euc-jp "; str+=" input type=hidden name=oe value=euc-jp "; str+=" input type=hidden name=hl value=\"ja\" "; str+=" input style= display none type=radio name=sitesearch value=\"\" "; str+=" input style= display none type=radio name=sitesearch value=\"\" checked "; str+=" br ↓対象サイトを入力して下さい br "; str+=" input type=text name=domains value=\"\" size=\"60\" "; str+=" br "; str+=" /form "; / str+=" /center "; document.write( ?= str ? ); 【課題4】 ファイルアップローダを PHP で作成 GD を使って、日本語を表示して、その日本語を入力させて認証する メッセージを IFRAME 内に出力する 【課題5】 上記アプリケーションで、アップロードファイルの存在チェックを Ajax で行う。 新たな IFRAME を開いて、ファイルの詳細リストを表示する